package com.liferay.service.impl;

import java.util.List;

import com.liferay.dao.SubjectOpenDao;
import com.liferay.dao.impl.SubjectOpenDaoImpl;
import com.liferay.model.ClassSubject;
import com.liferay.model.Lesson;
import com.liferay.model.ListSubjectOpen;
import com.liferay.model.Room;
import com.liferay.model.SubjectOpen;
import com.liferay.model.Teacher;
import com.liferay.service.SubjectOpenService;

public class SubjectOpenServiceImpl implements SubjectOpenService {

	private SubjectOpenDao subjectOpenDao;

	public SubjectOpenServiceImpl() {
		subjectOpenDao = new SubjectOpenDaoImpl();
	}

	@Override
	public List<ClassSubject> getClassByFaculty(long idFaculty) {
		return subjectOpenDao.getClassByFaculty(idFaculty);
	}

	@Override
	public List<Room> getListRoom() {
		return subjectOpenDao.getListRoom();
	}

	@Override
	public List<Lesson> getListLesson() {
		return subjectOpenDao.getListLesson();
	}

	@Override
	public List<Teacher> getTeacherByFaculty(long idFaculty,String roleName) {
		return subjectOpenDao.getTeacherByFaculty(idFaculty,roleName);
	}

	@Override
	public boolean insertSubjectOpenByFaculty(SubjectOpen subjectOpen) {
		return subjectOpenDao.insertSubjectOpenByFaculty(subjectOpen);
	}

	@Override
	public List<ListSubjectOpen> getListSubjectOpenByYearOfSemester(
			long idFaculty, long fkYearOfSemester) {
		return subjectOpenDao.getListSubjectOpenByYearOfSemester(idFaculty,
				fkYearOfSemester);
	}

	@Override
	public boolean deleteSubjectOpenById(long id) {
		return subjectOpenDao.deleteSubjectOpenById(id);
	}

	@Override
	public List<SubjectOpen> getListSubjectOpenById(long idSubjectOpen) {
		return subjectOpenDao.getListSubjectOpenById(idSubjectOpen);
	}

}
